Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 8, 2026 •

Summary

This PR adds a dedicated, manually triggered GitHub Actions workflow for safely destroying PROD infrastructure in OpenStack.

It also includes README documentation updates covering the current CI/CD implementation, branch protection, and verified infrastructure lifecycle. Waiting with updating further once PROD destruction has been succesful.

Changes

PROD Destruction

  • Added .github/workflows/destroy-prod.yml.
  • Restricted execution to manual triggers from main.
  • Integrated the existing PROD GitHub environment and its required human approval.
  • Configured PROD-specific credentials and remote state validation.
  • Implemented destruction in reverse dependency order:
    1. Frontend
    2. Network
  • Used saved OpenTofu destruction plans.
  • Shared the infrastructure-deployment concurrency group with deployment workflows.
  • Added cleanup of temporary plans and credentials.

Documentation

  • Updated README.md with the verified TEST and STAGE destruction/recreation lifecycle.
  • Documented centralized CI tool version management.
  • Documented the Protect main branch ruleset and PR requirements.
  • Clarified PROD deployment authorization and remaining infrastructure lifecycle steps.

Safety Measures

  • PROD destruction must be explicitly triggered.
  • Existing PROD environment protection requires human approval.
  • Only environments/prod/ is targeted.
  • PROD remote state is validated before destruction.
  • TEST and STAGE are excluded.
  • The self-hosted runner and Kubernetes state cluster remain outside the destruction scope.

Validation

  • TEST deployment, destruction, and recreation verified.
  • STAGE deployment, destruction, and recreation verified.
  • PROD deployment previously verified.
  • PROD destruction workflow implemented.
  • CI checks completed for this PR.
  • PROD destruction successfully executed.
  • PROD infrastructure successfully recreated.

@einalien einalien self-assigned this Nov 8, 2026
@einalien einalien added enhancement New feature or request documentation Improvements or additions to documentation labels Nov 8, 2026
@einalien einalien merged commit 77e60a1 into main Nov 8, 2026
1 check passed
@einalien einalien deleted the feat/cd-destroy-prod branch November 8, 2026 20:23
Sign in to join this conversation on GitHub.
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant